layui.config({
    base: "js/"
}).use(['form', 'layer', 'jquery', 'laypage'], function () {
    var form = layui.form(),
        layer = parent.layer === undefined ? layui.layer : parent.layer,
        laypage = layui.laypage,
        $ = layui.jquery;


    //控制按钮跳转  $(".role_menu").onclick(function(){
    $("body").on("click", ".role_menu", function () {
        var _this = $(this);
        $('.ci_data').val(_this.attr('data-id'));
        var index = layui.layer.open({
            title: "添加权限",
            type: 2,
            area: ['600px', '360px'],
            maxmin: true,
            shadeClose: true, //点击遮罩关闭层
            content: "http://localhost/ci/admin/tree/addTree",
            success: function (layero, index) {
                layui.layer.tips('点击此处返回文章列表', '.layui-layer-setwin .layui-layer-close', {
                    tips: 3
                });
            }
        })
    })
})